package com.elmcode.study.design.pro02_factorymethod;

import com.elmcode.study.design.pro02_factorymethod.factory.AudiFactory;
import com.elmcode.study.design.pro02_factorymethod.factory.BencFactory;
import com.elmcode.study.design.pro02_factorymethod.vo.Car;
import org.junit.jupiter.api.Test;

public class FactoryMethod {

    @Test
    public void testFactoryMethod(){
        Car audi = new AudiFactory().createCar();
        Car benc = new BencFactory().createCar();

        audi.run();
        benc.run();
    }

}
